add endpoint for viewing pending queue