update controllers to handle routes