show js popup on success
add test cases