added index page functions