changing views to phtml