Change the openPanel storage type to a constant.