Added default ajax handler for modals