Refactor allows for single onInventoryClickEvent implementation in Panel class.