Router functionality working