changed order of  and instantiating of controller to allow because I need to access DOM from controller