handle add edit mode in fold menue