Prevent multiple reloads on html change