Update helper.php

Adding support for alternative layout