updating backgroundand style