Render Categorized page correctly. Fix minor errors.
Fix indexing error