init chat controller