Updates the layout of the overlay