Geometry: move DOM manipulating tasks into the onShow function