UI improvements

Issues with UI.

@MarkW WHat is the issue here?

The div that shows the extract form does not adapt to its contents. We have to scroll up and down to see all the fields etc.