Setting bubble size in the state