adds view command to queue block, fixes bug, and adds unit tests