switched to js redirect