make library a valid selection; change context menu depending on library or footprint