add twitter method code to handle callbacks from twitter