Add listener to allow customize actions on collapsing start