Finally got the radiobuttons to function semi-properly