Added parameter to show/hide the popup in mobile devices.