calculating relative position of child when using pixels x and y coordinates is added
button widget is added