when click preview , refresh navigation bar