display PCA plot dynamically (working)