adds persistent key and subview