extracted modal directive to separate model