Added Resizing Handling