refresh for different modes