fixed popup issue with mobile devices