overlay show logic