changed the order of css for clearity in dom