fix routing and hide rendering mode