revert panel_toplevel_add function