fixed samplepage stuff