changing controller template

controller template changed to work with modules
We need to keep the `controller_before_filter` call here. We still support Rails 3.2