cancel button returns to main view