add views logging and confirm js