adding ui-router logic from seed project. This is the right way to do things