modification to accommodate page tabs