a bit of refactoring
implemented delete action - yet to add UI ajax call