move clone_attributes to application_controller