corrected regex declaration bug, holding back event driven page reload