widget pagination && dialog optimize