Moved setfocus to helperFunctions