Unable to find variable 'form' in current scope