use lambda for repeated code in system info view