Added beforeShow and ajaxContentUrl