Moduli spaces of sheaves and principal sheaves