add functions

add save setting function and let the path string to be uneditable