Added support for angular ui router