Adding auto event binding