Add $page array to store page details
Rename template directory and move header/footer