moved debug to own tab + file + added hook to be simplify saving options page things