refactor: modify chat UI and refactor static_media