Getting multiline code working in widgets