switching to ajax calls for modals