refactor sidebar
static views working