removed duplicate lines from record controller in edit action