creating singleton instance for router