restructured GridItem.js and implemented SetEntity Command