Fix bug when loading project with no page
Implements app navigation