added master detail modal