Move main into widget package.