added "update" method to store
refactoring and implemented update method for store