updates grid settings