Corrected direction var in addEditDialog