Setting up the listing handler