changed positions and dimensions to percents