Added settings page for HiberActive integration and separated out some functions to make it easier to read