Made changes in scala templates for updating a record