added event for send button