added legend window