add modal directive