flip auth controls over to angularjs