cleanup
enhanced active page detection, updated label
enhanced active parent detection
getActivePage may return null
updated views (labels, code formatting)