Loads correct template