commiting before UI changes