Changed .subView to have switch statement instead of if/elses