updates grid config