adds toggle on/off of css class for mainContent