fixed bugs and added confirm message for delete