fix blinking. replace css