Added two way binding to inputs