Add last classes to listing templates