Attach resize handler to resize button only once