fixed hiding/showing of anchors