Clears page when reaches leaf