removed unused code from category and topic controller