added viewswitcher generic component to datagrid