Cleanup pool settings, saving with ajax, miner restart with ajax