removed some dummy pages, moved some code from index.php