migrate to angularjs interface