added inventory resource and cleaned up inventory controller