refactor and working copilot model with multiple viewers. also, buffering for copilot
browser terminal