remove parent dependency; use builder.buildView instead of class casting; reformat code according to java code convention