adding some views functionality

Signed-off-by: Pete Inge <pete.inge@gmail.com>