Remove error cards
Change origin parameter based on location