added basic support for resize and portrait layout. need to figure out how to select different size layouts/dimens.