Added some debug code to test the view