change the sensor delete behavior
change the behavior of flash message and timeout exception handling