Cleaner implementation of widget lookups