fixed deleteBeacon bug and comment refresh page bug