improvements in add, edit, delete methods issue #1