Implementation of index page functionality