improved location of main panel dimension