cleaned up show view code