fixed issues with resizing (hopefully) - only tested on emulator