send and preview buttons yay, but code sucks lol