ported main.phtml