Add pop-in and pop-out hooks