detect if popup was allowed