added fix to prevent multiple mesage messend on clicking send button