transition working with radio buttons, cleaned code