handling errors in programs new edit views