working on views for edit and delete