Added Enter->OK button functionality to dialogs