fixed update and delete of training
added style and fixed training edit