splitting application into different pages