Refactor the table in the main inventory view as well.