added action filter to getNextUpcomingTask in schedule