close button and new build script to purge cache