Set flags in models and rerender