implement GridWidget part1