fix routing and spa