Import, resizeEvent, some refactoring