This is a code for collapse list.