formatting fixes to angular controller