refactored gridItem.js