add link controller to model and cotroller to gui