redirect for viewer
correct undefined check
add complete button, correct undefined check
add complete button and js