index method now renders page with proper content and formatting