main panel tweaked