added macro for rendering out form fields, completed ajax calls to get front-facing response data.