added nested modals for detail modal