finished functions for inventory restore; needs UI and routes