Updated extension to allow popup to be created