commit before changing slide view