formatting
Seperate inventory click event out of main