added modals and AJAX