redifine model and start home page