update grid layout