Using the different modes of data binding to allow persisting data