refactor globals into assessment widget