removed trailing space
added id to radio value, and logged id on click
minor code cleanup for readability