Add common hooks called before/after pop up window
Add explanation of hook