implement remove task event