fix view flash issues