added function to give focus to another plugin