put internal panel related functions within a single namespace