gui now creates all the loaded pages