got the main view working