added edit functionality. all CRUD functions are done