wired up send button functionality