prevent ugly flashing of control button on ios