Condensing widget variables into single object