Added jquery ui widget factory