added resize-eventlistener