Update app routing logic