Added event resizing