code from class 1/23 accept button, cancel button, string variables, focus, selectall, getting input from user