made character functions easier to add more types
added toggle button for char function edit
something.