add functionality to categories index page