Added delete, and edit functionalities. Also refactored the form, and allowed for flash notice