redirectTo takes a function and returns a path
resolve stuff before controller is initialized