Create categories

@amZotti @katherineabuhadal 
This is a pretty general concept, and is now used in multiple controllers. I would extact this to `ApplicationController` and remove it in the individual controllers.