updates styles for widget