add timeout_handler for show/hide the bar