Update main layout and index page for the frontend