Moved reversion from view to model