Change Widget API: pointers instead of IDs