added error handler middleware to dev env as well
added some types in html links/scripts, and try to fix staging deploy issue