In one of his first acts in office , President Barack Obama ordered the closure within one year of Guantanamo Bay , where about 245 people are still detained and which has been widely viewed as a stain on the U.S. human rights record .