created separate controllers for index.html and category.html