Armour and level swap

so in my inventory widget whe giving the buttons functions just cast it to the gameinstance instead of my character