modify contracts and views for use ajax