Added action functionality to chat view.