move models to component