Added an item listener.