change the window.location when label is edited on label page