add option for close button position