Gh394 git history

#394
Node(grid.selectedItem) is used everywhere in this method
isn't it better to put it a var?