add method bind to achieve data-binding