Add callbacks to pop up/down