now it correctly changes the interval for the refresh rate
forgot to make it actually close