Added closure to main alert call so that the input text box gets focused on after clicking dismiss