adding conditional views
refactoring categories#index as a custom route
drying up with partials
adding options for input