Redid index page. Added layouts for cleaner code