switching user onclick and in new tab