fix update state for show/hide alarm icon