adding chat controller