add cp5 radio button and change order of variables and functions