made curtain dynamic