moved todo settings to in buffer config file
move todo and startup config to inbuffer settings
implemented hook for state change