add redirect parameters to urls & specify active tab with url