make mobile popups work a bit better, still some problems with the url, but basically works