commiting changes after applying template