allow selectmenu with non native popup to work in external pages. Part of #199