Updated page overflow handling