updated routing to use controller methods