moved the focus out event to be a seperate function and up to the initevents