add auto expand function.