added extra functionality: loading gif and self-closing info boxes