Added val funcs and popupCenter