change template base on category