Everything works now including save and delete funciton, excpet the scheduler function