template editing fixed