refactored main activity, created TrendTask and GetUrlTask and passed context and vars from main