Fixed error that prevented a controller from being defined for a state w...

...hen a views property was defined instead of a single template