update viewport code and now sitting inside template.php