fixing redirect in tab