a whole load of changes including js element resizing