Revise edit_entry to only one method.