purging all references to buttons