Modified session-modal to handle new json format