changed main swithc element from div to button