add toggle class method