created tweet functionality