Only jump to datatables-view if status is set

Related to #607, implements suggestion in #265.

Also comments and makes named functions of things that were otherwise a little
difficult to find and understan the mechanics of.