Mark as modified when applying styles