improved the distribution of the panels (html) and auto resizing of the sample graph