changing controller template

controller template changed to work with modules
:+1: on keeping the `controller_before_filter` and also the other helpers like `orm_class.all` that have been skipped on the other lines if possible.