Added erros and notifications to edit feature