Add Form resize and remove nunecessary function.