rebind popup to path when path changes