first implementation of ui-router