apply total page