Updating grid layout