Buttons working for inputs of type radio and checkbox