add resize hadler