Implemented directive for modal view