Make sent button work