added restore method
added restore test
implmented restore url
implemented restore history url