implemented new main view