Renamed StateController to stateCtrl to align with angular naming conventions