add view task results add method in task results controller to calculate success