Fixed problem in DetailPanel. contextWindow had to be set before anything else dependent on it is done