Divide controllers and router functions