updated example styles and added logic for close button positioning based on whether scrollbar is present or now