added show logic