added constructor for modal data object