[UI] Fixed the scripts that deals with adjusting size of the right panel