update chat controller to use chatLayout