added toggling of show weights