remove popup directive