implemented tweet functionality