Use dialog to provide better user experience.