redirect to previous page fix 2