solved the popup error on mobile devices