added methods to controller and views
Merge pull request #19 from brandonkwong/categoriesmodel

added methods to controller and views