main page view working