Small layout changes so that widgets, panels align. Add back line so that first reference is selected after chart for references is rendered.