fixing popup load page outside device ready