moved routing to Routes class