update submit functions; update model switching