chat view and model