Add directive for popups