added deleteView to controller