setting errorapp