add and delete queue item functionality