rebuilt analytics and social modules, refactored some styles