sidebar implementation