refactoring event binding to MVVM binding.