Moving view from main into dojo controller