fixing click to switch focus