modularied views, fixed up most of the routing logic for bad and good searches, still need to modularize routing