show flash errors for resource controller html requests

and not for js requests.
when a resource controller failed to create/update there was no indication of what had failed.