some refactor
re-enable resize