handled exceptions in connection content and styled it