Add refresh function and modify background color