moved view logic from init routine into views, moved to more simplistic router pattern