Refactoring Resize and adding initial Overlay code