implement the index and category pages