added multiple pages and functionality to application