css for chat bubbles and refactored tempate