upgraded to new ui-router, fixed bug