update controllers and routes