tweak statistics page
add error check
fix doesn't stay in app

stayInWebApp only works for relative urls
Merge branch 'master' of github.com:weiweicse/CS147-Time