showing legend for ifram view and hiding tooltip