organize contents of main environment pane classes
fix expansion bug after two refreshes; remove unused method