adding some key/label initialization that was missing