edit note form and submitting form functions added