fixed status switch bug in EditViewController