edit and delete functionality done