add loop handler in fn_tpl and implement it as an example in inboxgroup list