fix loading image when browser back is clicked