adding before-data-binding event