Code written to load index page model