Adjusted locations_controller to only use one instance variable

* Updated location model to include method for categories