working two way binding
added two methods and filled methods