fix page reload on enter in inputbox