improve dialog responsivness