versioning working properly

moved edit and view.html to ejs server-side templates