modify treview pattern