Show loading dialog when submitting a message