added some checks to prevent errors if revealing panel style not found for modification