add delete action. TODO: fix unique update issue and errors on collections