Template for pTree apps