How do you turn level doors yellow with a red star on them in Kirby Nightmare in Dream Land?

Red doors mean that the level is not copletely beaten. There is a hidden switch somewhere in that level, sometimes very hard to find, that will turn it yellow