updating default behaviour of expand button