changed position and size values to percentages