possible to create a widget reference based on string?

maybe i just need to use functions or something