moved Twitter API codes to seperate file