tryed to stop blinking on page switch