set gui visibility recursively
show/hide edit gui based on whether in edit mode