Adding a function activate_focus() to activate a widget then set the focus
on it