adding beautify save hooks