added some routing logic and styles