angular controller adds and deleted actions