focus editor after selecting an option