Actually called the registerlisteners method