Add functions for radio and check box