corrected radio buttons loss of selected record, moved logic to controller from routes #123
deconjested squeezed code #123
general cleanup for #123
small changes to queries #123