updating controller routing logic