Adding back redirect query because it closes popup