Updates grid layout