showing square type alert for server errors