update template and add showCompeletion trigger