update method to get a focus