making text boxes behave themselves on subsequent clicks