updates to fix resizing