After months of negotiations, Loblaw agrees to sign grocery