Redraw content when going back/forwards.