changing controller template

controller template changed to work with modules