removing unneeded console.logs, cleaning up routing code