implemented a configuration file to save settings. debugs func on admin page