upload model and view