appengine views, refactor