added controller to chat page