family: Prevent clicking on > 2 nodes
Previously, it was possible to click on more than two nodes, which was
throwing an error, which is fixed by maintaining the number of nodes
that are selected and preventing the selection of nodes if two nodes
are already selected
Signed-off-by: Rudra Nil Basu <rudra.nil.basu.1996@gmail.com>