converted UIController into a generic boolean array average manager and converted tool page to use it