added a toggle implementation for bootstrap