got it working better. Now just need to get the ui building with hooks dynamically and saving templates as well as data.