adding ajax for modal window