Fixed the issue of sub UI components being rendered outside the defined divs