working on main view