working on main page view