tested that radio buttons are working too, previously there was a bug. used switch case instead of string == string