wrap model 'hide' in dismiss