Added .preventDefault to keep focus