Added value arg to build attrs, to allow widgets to use it in constructing attrs