added disabled state to variables, added inventory variables management