implemented toggle bar