refactored model. added status and colors to gui