fix for scrolling when dialog is shown