Structuring code focused on Index page and landing page