added handler for radio inputs