add twitter related libraries
simplify tweet-related functions and outsource views