order edit functionality