adjust resize column logic