revert changes to modal