remove unused codes on page_welcome.php
add early support for templates to seperate logic and view