reverting modal changes