Create inner listener classes, instead of anonymous classes