Well I am using a button now, but the code gives a syntax error on the "if (inventory_main, VISIBLE);" inventory_main is the name of the panel.