update index file to support dynamic # of bubbles