move resizeend to main file