adding manual javascript toggle controls to rects for testings