added loading indicator for chat feature