speed up code by only creating info bubble when it is really needed.