add resize button and fix resize function
merge and clear