rewrite of basic panel