adapt widget