Change gird from view to panel in index.js