working on the tabs of basepopupwindow