move the fuctions map to a display class