optimize options populate
item template handling