make chat controller work