Adding functionality to NBody tab