added chat controller