Allow accessing controls in GUI event handlers (closes #5)