Sidebar remove p tags and adjust css

This PR replaces PR  #527

* These changes remove most of the <p> tags from the right sidebar, without changing the layout too much.
* The tab buttons are a little bit higher but this will be adjusted with the next CSS tweaks.