Removed newly unused elements .contents, .master, .reset() and moved decalarations of .form to controller top