Refactored itemPanel