separated html/js from view into a tpl.php file