conditional statement for if the user clicks cancel - works
jk, now it works
takes input & focuses cursor on input box