changed partition event to partitioncomplete. added partition function to set partitions explicitly
use new API to catch partitioncomplete event and use highlight function