Adding common hide/show code see BT#7060
Adding new code to save a nanogong file.