fixed sidebar generation