add raw error dialog support, only add model to collection once it has been saved