Move certificate panel rendering to separate file