fix dont show panel on buttons click