add directives of popup and notification