add resize listening