added basic router, was getting very cluttered