modify auto show logic