Refactored widget pointer