refactoring QueueItemsController