edit directive preview page