Add error message and loading icon