setup widget and messaging system