added cancel function to creatin of new lesson