Method 'showView' modifed to solve problems with array index