slight refactor of tweets controller