Prevent scrolling when press close button for dialog