add automatic hookTml for plugin