Life is looking up for Britney Spears after she was allowed expanded visitation rights with her two young sons at a child-custody hearing.The 26-year-old arrived wearing a brown polka-dot dress and white sweater, flanked by her parents and lawyers, a far cry from the spectacle of previous appearances.At the Los Angeles Supreme Court, Commissioner Scott Gordon expanded her visitation rights in a move which will allow Spears to see her children for longer periods, while Federline retains custody.Outside court, Mark Vincent Kaplan, Federline's lawyer, said the longer visits were "recognition of the progress that has been made".It is three months since Spears left a psychiatric ward a week ahead of schedule and stirred up a paparazzi car chase, a scene that looked like the beginning of even more erratic behaviour.But in the weeks that followed, she has kept a relatively low profile and she even found success in a cameo appearance on How I Met Your Mother.Spears has been under the conservatorship of her father, James, for the last three months after the court put him in control of his daughter's personal and financial affairs.