added some dom ready functionality