the popup will be shown by mainactivity thread