Display current query with remote monitoring

Add logic to the remote machine code to be able to toggle the display of
the current query.