corrections and working on delete button