change background according to time