updated several views pages as well as javascript functionality