- implement chat and layout messages