Changed view and moved logic from controller to model