refactor js/css, fix the css, calculate the percentage and edit animation for bubbles