add listener functions to the WiFiBox class