Made focus on proper widget after switching panels