cleaning up some issues with saving ui component preferences