Solving toolbar button blinking issue