Made grpah size autoadjust using layouts
Stats dialog now adjusts size properly for all tabs