changing the default index page and creating a model