moved routing into seperate file