store_location and render error page