fixed active/down functions in page.php