working edit and delete