Call appropriate template file for $tab