implemented reset (need confirm dialog), and fixed radio button bug