fixing main page views