Binds listeners correctly