add attribute toggling