add jquery ui for resize function