changing the scope model variables in a scope function will update the views bound to the variable