Added updateCount call after editing an item