added refresh rate to preferences