set up 3way data binding