Refactored code for creating question. Shifted DOM related stuff to view from controller.