clear and clearAllPages