added lightcurve deleting and dialog, bugs to fix