Implementation of cooktime for view template