working out where to put elements in the html