edit and delete working