improved menu positioning tools, esp. for mobile
fixed references to textIO element