resize handling added.