Adding comments before switch to Ajax to handle modals