added conditional to avoid showing more info when a library is added or removed