Refactored twitter api functionality and added design to index page