Added dialog box instead of popup #30.