Implemented a listener for the shop to make it work