Refactored index to show category list as a sidebar