Refactor sidebar config