fixing some resizing issues on iOS