Add click event for closing errors