changed tweet controller

did most of the work on the tweet  controller