add constness to ui framework