add restore function to restore by Id and by status