bug fix disable modal on mobile devices