toggle class with inputs