index and category pages working