Commiting modal changes