Implement edit mode for record view