different method of adding vote to firebase