putting updateBounds back in, switch to $timeout