better positioning of main panels; no overflow #17