Refactor sidebar

Refactor sidebar so html is not generated via third party tools