Didn't test "server.py". Fixed error. Fixed order and reload bug in "viewer.py"