add overlaypane directive