Expose view so we can unit test it

Signed-off-by: crynobone <crynobone@gmail.com>