attempted to make beacon saving button work