added custom positioning for popups