created mode specific css
moved javascript to structureMode