added style checking to show