Selecting the loop tamplate depending on category