working on the tabs of popup window