change return type of get widget list callback (#4633)