modified Home page function