preserve background color after filtering

by saving the background color on the note model itself, the background
color is preserved after the filter is applied.