fixed terms delete action + made some major change in controller