updating foreground and font