updated js. Delete works properly
updated interface and controller