Correct and improve scrolling function in mail request dialog