refactor queue_items_controller