beginning edit and delete functionality