work on main view