Add scrolling to preview pane and fix footer overflow

There's no scrolling in the div when the result is too big to be previewed.

Also, the bottom footer overflows the last few lines.

This might be an ugly way of doing this, but it kind of works for me.