routes controller flow