fixing issue with losing focus in input boxes.