added gridlayout for controlpanel