fixed recent activity functionality