Multi-Device compatibility

added in auto resizing