refactor focus out