Fixed some checkstyle errors and a bug involving views and insufficient
getParent() calls.