handle the background task for load activity