added attempt to take focus