got it working with phtml templates