Add callback functions named shown and hidden executed after content is shown and hidden respectively.