refactor history_items admin