Implementation for refreshing section attributes

Please review and integrate, thanks!