update edit delete function for beacon and local notification