Expunged info panel display into a function