Moved logic from view to model