adding ajax connection to mms for displaying related resources