added routing. Need to work on restructuring code.