wrote compositeview class, couple bugfixes