handling focus in/out (in progress)