refactored updating data grid to a method