Modufied web_server for tweet function