converted popup button to x y system