Scroll top when opening a dialog