render write param can take a widget class