rendering different templates based on pm type