Created custom directive for deployment and instance