Cleaned the legecy code in template.php
Fixed wrong link to onsen ui page