moved PHP around to make the display more consistent