shwo selected title and id on modal