submit-edit and edit buttons working perfectly