redone form stuff to be programmatic. Added javascript functions in blog.js